package com.sskj.market.util;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
import com.bumptech.glide.request.RequestOptions;
import com.sskj.common.base.App;
import com.sskj.market.R;
import com.sskj.market.http.HttpConfig;

/**
 * @author :budou
 * Package :com.sskj.market.util
 * Date :2019/8/2 10:47
 * Describe :glide加载图片
 * Remark :
 */
public class GlideUtils {


    public static void Show(String path, ImageView imageView) {
        Glide.with(App.INSTANCE.getApplicationContext())
                .load(HttpConfig.BASE_IMG_URL + path)
                .apply(RequestOptions
                        .placeholderOf(R.drawable.market_img_loading)
                        .error(R.drawable.market_img_loading))
                .into(imageView);


    }
}
